package com.itheima.singleinstance;
//懒汉模式
public class B
{
    public static B b;
    private B() {}
    public static B getInstance()
    {
        if(b==null)
        {
            b=new B();
        }
        return b;
    }
}
